package {
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import net.hires.debug.Stats;
	
	import org.wak.main.AdventureMaster;
	
	import puzzle.MyPuzzleController;
	
	[SWF(width=800,height=400, backgroundColor=0x555555, frameRate="60")]
	public class wakDemo1 extends Sprite
	{
		private var mAdvMaster:AdventureMaster ;
		
		
		
		public function wakDemo1()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			Initialize();
		}
		
		public function Initialize():void
		{
			// Initialization of the adventure
			mAdvMaster = new AdventureMaster();
			mAdvMaster.SetMainClass(this);
			mAdvMaster.SetResMngr(Resources);
			mAdvMaster.Initialize() ;
			
			// Adding puzzle controllers
			mAdvMaster.AddPuzzleController( new MyPuzzleController() );
			
			//mAdvMaster.StartSavedGame();
			mAdvMaster.Start();
			
			addChild(new Stats());
		}
		
		
		
	}
}
